package com.hxl.demo.tools.enums;

public enum ResultCodeEnum {

    SUCCESS(true, 200, "操作成功"),
    FAIL(false, 400, "操作失败");
    private Boolean success;
    private Integer code;
    private String message;

    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public Boolean getSuccess() {
        return success;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
